package com.fearless.demo03;


import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class MyAspect {


    //前置通知
    @Before(value = "execution(* com.fearless.demo03.*.*(..))")
    public void before(){


    }

    //后置通知
    @After(value = "execution(* com.fearless.demo03.*.*(..))")
    public void after(){
        System.out.println("方法结束了");
    }




}
